<?php

								if ( isset($_SESSION['auth'] ))
								{


								$sql = "SELECT * FROM $table_name 
								  WHERE user_name='$_SESSION[logname]'";
								$result = mysql_query($sql,$db);
								$infos = mysql_fetch_array($result);
								?>

								<p class="icon-ok more i92"></p>

									<div class="info-page">
									<script type="text/javascript">
								  //<![CDATA[
									 $(document).ready(function() {

										var optionsM = { 
											success:       sendRepM,  // post-submit callback 
											url:		   'php/mod_res.php', 
										}; 
										$('#modifres').ajaxForm(optionsM);



										function sendRepM(formData, jqForm, options) {
											$(".more").hide();
											$(".more").html('Votre profil a &eacute;t&eacute; modifi&eacute;').slideToggle('slow');
										}
									});

								  //]]>
							  </script>

									<form method="post" id="modifres" name="modifres">

									<p><label for="ziki_url">Url Ziki.com: </label><input id="ziki_url" type="text" name="ziki_url" value="<?php echo $infos['ziki_url'];?>" /></p>
									<p><label for="linkedin">Pseudo LinkedIn: </label><input id="linkedin" type="text" name="linkedin" value="<?php echo $infos['linkedin'];?>" /></p>
									<p><label for="skype">Skype: </label><input id="skype" type="text" name="skype" size="20" value="<?php echo $infos['skype'];?>" /></p>
									<p><label for="pseudo_flickr">Pseudo Flickr: </label><input id="pseudo_flickr" type="text" name="pseudo_flickr" value="<?php echo $infos['pseudo_flickr'];?>" /></p>
									<p><label for="url_rss">Lien RSS: </label><input id="url_rss" type="text" name="url_rss" value="<?php echo $infos['url_rss'];?>" /></p>
									<p><label for="url_2">Lien 2: </label><input id="url_2" type="text" name="url_2" value="<?php echo $infos['url_2'];?>" /></p>
									<p><label for="url_3">Lien 3: </label><input id="url_3" type="text" name="url_3" value="<?php echo $infos['url_3'];?>" /></p>

									<input type="text" name="valid" value="ok" class="hidden" />
									<p><input type="submit" name="validReseau" value="Envoyer" /></p>
								</form>
								</div>

								</div>

								<?php } 
								else {  } ?>